package com.lx.txx.controller;

import com.lx.txx.dao.TxxImageMapper;
import com.lx.txx.entity.TxxCar;
import com.lx.txx.entity.TxxImage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 天下行租车-车辆轮播图-16 前端控制器
 * </p>
 *
 * @author lx
 * @since 2024-12-30
 */
@RestController
@RequestMapping("/txxImage")
public class TxxImageController {

    @Autowired
    TxxImageMapper txxImageMapper;

    @RequestMapping("addImages")
    public void addImages(@RequestBody List<TxxImage> txxImage){
        for(TxxImage list : txxImage){
            txxImageMapper.insert(list);

        }
    }
}
